<script setup></script>

<template>
  <div class="box">
    <!-- 左侧 -->
    <div class="left">
      <!-- 图标 -->
      <el-icon><DataLine /></el-icon>
      <!-- 数量 -->
      <span>0</span>
      <!-- 描述 -->
      <span>今日访问量</span>
    </div>

    <div class="left">
      <!-- 图标 -->
      <el-icon><User /></el-icon>
      <!-- 数量 -->
      <span>0</span>
      <!-- 描述 -->
      <span>新增用户量</span>
    </div>

    <div class="left">
      <!-- 图标 -->
      <el-icon><ShoppingCartFull /></el-icon>
      <!-- 数量 -->
      <span>0</span>
      <!-- 描述 -->
      <span>今日购买量</span>
    </div>

    <!-- 右侧 -->
    <div class="right">
      <!-- 第一行 -->
      <span></span>
      <span>课程访问量</span>
      <span>课程购买量</span>
      <span>听课人数</span>
      <span>机构数</span>
      <!-- 第二行 -->
      <span>总量</span>
      <span>0</span>
      <span>0</span>
      <span>0</span>
      <span>0</span>
      <!-- 第三行 -->
      <span>昨日</span>
      <span>0</span>
      <span>0</span>
      <span>0</span>
      <span>0</span>
    </div>
  </div>
</template>

<style scoped>
.box {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  .left {
    width: 150px;
    height: 150px;
    font-size: 13px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    .el-icon {
      width: 40px;
      height: 40px;
      font-size: 26px;
      border-radius: 50%;
    }
  }

  .left:nth-child(1) > .el-icon {
    background-color: #f7b733;
  }
  .left:nth-child(2) > .el-icon {
    background-color: #4a5cff;
  }
  .left:nth-child(3) > .el-icon {
    background-color: #05c46b;
  }

  .right {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 1;
    min-width: 430px;
    height: 150px;

    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    box-sizing: border-box;
    padding: 15px;
    text-align: center;
    align-items: center;
  }
}
</style>
